package com.whisper.hfdp.design.singleton;

public class SyncSingleton {
    private static volatile SyncSingleton singleton;

    private SyncSingleton() {
    }

    public static SyncSingleton getInstance() {
        if (singleton == null) {
            synchronized (SyncSingleton.class) {
                if (singleton == null) {
                    singleton = new SyncSingleton();
                }
            }
        }
        return singleton;
    }
}
